<template>
  <div>
    <ComTable
      :config="config"
      :pagination="{
        total: pageing.total,
        pageNum: pageing.pageNum,
        pageSize: pageing.pageSize,
      }"
      :list="consumptiontable"
      :modes="consumptionModes"
    >
    </ComTable>
  </div>
</template>

<script>
import ComTable from "../../../components/comTable.vue";
export default {
  name: "Consumption",
  props:['consumptiontable'],
  components: { ComTable },
  data() {
    return {
         // 表格配置
      config: {
        // border: true,
        isAdd: false,
        loading: false,
      },

 //圈主消费数据
 
      //圈主消费详情表格
      consumptionModes: [
          {
          showOverflowTooltip: true,
          width: 100,
          label: "订单号",
          mode: "orderNo",
        },
         {
          width: 100,
          label: "用戶ID",
          mode: "userId",
          showOverflowTooltip: true,
        },
        {
          width: 100,
          label: "用户姓名",
          mode: "nickname",
          showOverflowTooltip: true,
        },
        {
          width: 100,
          label: "消费类型",
          mode: "type",
          showOverflowTooltip: true,
          options: [
            {
              l: "法律 ",
              v: 1,
            },
            {
              l: "问答 ",
              v: 2,
            },
            {
              l: "头条 ",
              v: 3,
            },
            {
              l: "合同 ",
              v: 4,
            },
            {
              l: "咨询 ",
              v: 5,
            },
          ],
        },
        {
          width: 120,
          label: "标题",
          mode: "title",
          showOverflowTooltip: true,

        },
        {
          width: 120,
          label: "消耗问金",
          mode: "momeny",
          showOverflowTooltip: true,

        },
        {
          width: 160,
          label: "创建时间",
          mode: "createdTime",
          showOverflowTooltip: true,
        },
        {
          width: 160,
          label: "发票状态",
          mode: "status",
          effectiveStatus: true,
          options: [
            {
              l: "待开票",
              v: 0,
            },
            {
              l: "已开票",
              v: 1,
            },
            {
              l: "已邮寄",
              v: 2,
            },
           
          ],
        },
      ],
      // 分页参数
      pageing: { pageNum: 1, pageSize: 10,total: 0},

    };
  },
};
</script>

<style>
</style>